const mongoose = require('mongoose')


let person = new mongoose.Schema({
    personname: {
        type: String,
        required: true,
        unique: true
    },
    password: {
        type: String,
        required: true
    },
    personemail: {
        type: String,
        unique: true,
        required: true
    },
    hearProtrait: {
        type: String
    },
    data: {
        type: Date,
        default: Date.now
    }
})

module.exports = mongoose.model("modelPerson", person)